package com.lyn.testplugin;

import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

import com.lyn.plugin.proxy.BasePlugin;

/**
 * 插件启动类
 * @author Lyn 2022/11/13
 * @version 1.0.0
 */
public class MainBasePlugin extends BasePlugin {

    private ImageView image;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.plugin_main);
        Log.e("MainPlugin","onCreate");
        image = findViewById(R.id.image);
        image.setBackground(getDrawable(R.drawable.logo));
    }

    @Override
    public void onStart() {
        super.onStart();
        Log.e("MainPlugin","onStart");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.e("MainPlugin","onResume");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.e("MainPlugin","onPause");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.e("MainPlugin","onDestroy");
    }
}
